package com.cst.zju.anime.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.cst.zju.anime.dao.ClassifyMapper;
import com.cst.zju.anime.model.Classify;
import com.cst.zju.anime.model.ClassifyExample;
import com.cst.zju.anime.service.IClassifyService;
@Transactional
@Service("iClassifyService")
public class ClassifyService implements IClassifyService {

	@Resource
	private ClassifyMapper classifyMapper;
	
	@Override
	public Classify getClassifyById(int id) {
		return classifyMapper.selectByPrimaryKey(id);
	}

	@Override
	public List<Classify> getAllClassify() {
		return classifyMapper.selectByExample(new ClassifyExample());
	}

}
